{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}全球生鲜购物商场{% endblock %}</title>
    <link type="text/css" href="{% static 'buyer/css/index.css' %}" rel="stylesheet"/>
    <script src="{% static 'buyer/jq/jquery.min.js' %}"></script>

    {% block style %}
    {% endblock %}
</head>
<body>
<!-- 头部开始 -->
<div class="header">
    <ul>
        {% if request.session.username %}
            <li><a href="/Buyer/logout/">[退出]</a></li>
            <li><a href="/Seller/register/">[免费开店]</a></li>
            <li><a href="/Buyer/car_list/">[购物车]</a></li>
            <li>欢迎：<a href="">{{ request.session.username }}</a></li>
        {% else %}
            <li><a href="/Seller/register/">[免费开店]</a></li>
            <li><a href="">[购物车]</a></li>
            <li><a href="/Buyer/register/">[注册有惊喜]</a></li>
            <li><a href="/Buyer/login/">[登录]</a></li>
        {% endif %}
    </ul>
</div>


<div class="header_logo">
    <div class="logo"></div>
    <div class="nav">
        <ul>
            <li><a href="/Buyer/index/">首页<br/>Home</a></li>
            <li><a href="/Buyer/goods_list/">商品<br/>Fruit</a></li>
            {% if request.session.username %}
                <li>
                    <div class="dropdown">
                        <div class="dropbtn">个人中心<br/>VIP Club</div>
                        <div class="dropdown-content">
                            <a href="/Buyer/address_list/">我的地址</a>
                            <a href="/Buyer/my_collect_list/">我的收藏</a>
                            <a href="/Buyer/my_goods_comments/">我的评论</a>
                            <a href="/Buyer/my_order/">我的订单</a>
                        </div>
                    </div>
                </li>
            {% endif %}
        </ul>
    </div>
</div>
<!-- 头部结束 -->
{% block content %}
{% endblock %}
</body>
</html>